home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / educate / cai203.zip / CAI.HLP < prev    next >
Text File  |  1990-10-05  |  6KB  |  194 lines

  1. CAI Commands Help File
  2. @1,Instructional command for PC-CAI "@" At commands
  3. @2,Textual commands for PC-CAI "." Dot commands
  4. @3,Example of Using @Case Command to Make a Menu
  5. @5,Example Uses of Graphics and Animation
  6. @7,What is Shareware
  7. @8,How to Become a Registered User
  8. @9,Assocation of Shareware Professionals
  9. ##1
  10.                             PC-CAI "@" (AT) COMMANDS
  11.                             ------------------------
  12.  
  13. @BEGIN QUESTION - Marker at first of a question
  14. @CASE - Branch according to user's answer
  15. @END QUESTION - End of a question
  16. @ESCAPE - What happens when user presses Esc
  17. @GOTO - Goto a label (@LABEL)
  18. @GOBACK - Go back to top, then search for a label
  19. @IF - Branching
  20. @LABEL - Branching Location
  21. @MENU - Goto DOS .CAI menu
  22. @OPTION - Controls Esc key
  23. @READ - User enters an answer
  24. @RIGHT (*TEXT*) [KEYWORD,EXACT,EXACT NOCASE,SOUNDEX . . .]
  25. @SHELL (*DOSCOMMAND*) - Execute a DOS command
  26. @STOP - End the tutorial
  27. @TRIES ## - Number of times to allow wrong answers
  28. @WRONG (*TEXT*)
  29. @TRIES ##
  30.  
  31. ##2
  32.  
  33.                             PC-CAI TEXTUAL COMMANDS
  34.                             -----------------------
  35.  
  36. .ANIMATE - make up to four images move in sequence
  37. .BLANK ##
  38. .CENTER (*text*) - center text
  39. .CIRCLE - craw a circle
  40. .CLS or .CLEAR - CLEAR SCREEN
  41. .COLOR - set monitor color
  42. .DRAW - draw lines in graphic mode
  43. .GET - Get an impage into memory
  44. .INFORMATION ## (*text*) CONDITIONAL - collect informtion from user response
  45. .LINE (x,y)-(x,y)
  46. .LOCATE y,x - locate cursor on the screen at y,x
  47. .MOVE - move a single image around the screen
  48. .PAINT - fill an graphic image with a color
  49.  
  50. continue...
  51. ##3
  52.  
  53.                        PC-CAI TEXTUAL COMMANDS continued
  54.                        ---------------------------------
  55.  
  56. .PALETTE - choose graphic color palette
  57. .PAUSE (*PROMPT*) - pause until Enter is pressed
  58. .PCX name x,y - Display a PCX (Paintbrush graphic)
  59. .PLAY (*designation*) ... plays music
  60. .PSET - Place graphic pointer on screen
  61. .RECORD (*TEXT*) FILE=oufile ... records answers
  62. .REM - Remark
  63. .SKIP ##
  64. .USE  - PROG=progname ... temporarily use another file
  65. .WAIT # - wait # seconds
  66.  
  67.  
  68. ##4
  69.                     EXAMPLE OF USING @CASE TO CREATE A MENU
  70.                     ---------------------------------------
  71.                                                                                
  72. @CASE(*ABCD:PCX,ANIM,MOVE,END*) center border
  73.   A - Show A Sample PCX Graphics File
  74.   B - Show a Sample Animation
  75.   C - Show Sample Move
  76.   D - End This Program
  77. @END
  78. .pause
  79. @LABEL:PCX
  80. ...place commands here
  81. @LABEL:ANIM
  82. ...place commands here
  83. @LABEL:MOVE
  84. ...place commands here
  85. @LABEL:END
  86. .locate 24,1
  87. .pause (*Press Enter to End this Program*)
  88. @STOP menu
  89.  
  90. ##5
  91.  
  92.                       EXAMPLES OF USING GRAPHICS COMMANDS
  93.                       -----------------------------------
  94.                                                                                
  95. EXAMPLE DISPLAY PCX GRAPHIC
  96. ---------------------------
  97. .screen 1
  98. .cls
  99. .pcx pcxtest.pcx 1,2
  100.  
  101.  
  102. EXAMPLE MOVE
  103. -------------
  104. .screen 1
  105. .cls
  106. .locate 20,1(*Example Moving Single Image*)
  107. .get runner1
  108. .move (1,100)-(250,100)
  109. .locate 20,1 (*                            *)
  110. .locate 20,1
  111. .pause
  112.  
  113.  
  114. ##6
  115.  
  116.                                EXAMPLE ANIMATION
  117.                               ------------------
  118.                                                                                
  119. .SCREEN 1
  120. .cls
  121. .locate 20,1 (*Example Animation*)
  122. .line (1,130)-(155,95)
  123. .line (155,95)-(315,130)
  124. .line (1,130)-(315,130)
  125. .LOAD RUNNER1,RUNNER2,RUNNER3,RUNNER4
  126. .ANIMATE (1,100)-(150,60) STEPX=4 STEPY=-1 PAUSE=.1
  127. .ANIMATE (150,65)-(300,130) STEPX=4 STEPY=1 PAUSE=.1
  128. .locate 20,1 (*                              *)
  129. .locate 20,1
  130. .pause
  131. ##7
  132.                                S H A R E W A R E
  133.                                _________________
  134.  
  135.  
  136.                             TRY IT BEFORE YOU BUY IT
  137.  
  138. The purpose of shareware products is to allow you to try software products
  139. before you buy them.  PC-CAI is not a public domain program, it is fully
  140. copyrighted. Persons who use PC-CAI beyond "trying it out" should purchase a
  141. copy. You receive several benefits from becoming an official registered user:
  142.  
  143. 1. You are officially licensed to use the program.
  144. 2. You help to keep the product growing to meet your needs.
  145. 3. You receive the very latest version, with a printed, bound, and expanded
  146. manual.
  147. 4. You receive periodic newsletters announcing new releases, and pointing out
  148. important information on any bugs and fixes.
  149. 5. You are able to purchase update to new versions for a reduced cost.
  150.  
  151. See the next screen on "How to Register" . . .
  152. ##8
  153.  
  154.                         HOW TO BECOME A REGISTERED USER
  155.                         -------------------------------
  156.  
  157.  
  158. Print out the file on disk named ORDER, fill it out and mail it directly to
  159. TexaSoft. To print this file, you can use the command:
  160.  
  161. COPY ORDER LPT1:
  162.  
  163. or
  164.  
  165. PRINT ORDER
  166.  
  167. To purchase by phone, call 214-291-2115 during business house (Central Time).
  168. Please have your MasterCard or Visa handy. Corporations, schools and
  169. governmental bodies may order with a purchase order. Organizational quantity
  170. discounts and site licenses are available.
  171.  
  172.                               ---Order Today!---
  173.  
  174. ##9
  175.  
  176.                            ┌─────────┐
  177.                      ┌─────┴───┐     │              (tm)
  178.                    ──│         │o    │──────────────────
  179.                      │   ┌─────┴╨──┐ │  Association of
  180.                      │   │         │─┘  Shareware
  181.                      └───│    o    │    Professionals
  182.                    ──────│    ║    │────────────────────
  183.                          └────╨────┘    MEMBER
  184.  
  185. TexaSoft is a member of the Association of Shareware Professionals (ASP).
  186. ASP wants to make sure that the shareware principle works for you.  If you
  187. are unable to resolve a shareware-related problem with an ASP member by
  188. contacting the member directly, ASP may be able to help. The ASP Ombudsman
  189. can help you resolve a dispute or problem with an ASP member, but does not
  190. provide technical support for members' products.  Please write to the ASP
  191. Ombudsman at P.O. Box 5786, Bellevue, WA 98006 or send a Compuserve message
  192. via Easyplex to ASP Ombudsman (70007,3536).
  193.  
  194.